<template>
  <div class="maintain-layout">
    <snackbar style-color="#4A4A4A"
              back-color="#FAFAFA"
              status-color="#FAFAFA"
              style="background: #FAFAFA !important"
              rightText="搜索"
              :fixed="true">
      <template slot="slot">
        <div class="top-layout">
          <input placeholder="搜索">
        </div>
      </template>
    </snackbar>

    <div class="projectStatistics">
      <div class="project">
        <span>车辆</span>
        <span>机械</span>
        <span>工资</span>
      </div>
    </div>

    <div class="bottom-layout">
      <span class="add-btn">项目情况</span>
      <span class="add-span">|</span>
      <span class="add-span">|</span>
    </div>
  </div>
</template>

<script>
export default {
  name: 'projectStatistics',
  data() {
    return {
      dataArray: [
        {
          date: '2021-5-31',
          name: '王宝强',
          earthwork: '钩机',
          number: 10,
          money: 2000
        },
        {
          date: '2021-5-31',
          name: '吴亦凡',
          earthwork: '洒水',
          number: 8,
          money: 1000
        },


      ]
    }
  }
}
</script>

<style lang="scss" scoped>
.maintain-layout {
  width: 100%;
  height: 100vh;
  background: #F6F6F6;

  .top-layout {
    border-bottom: 1px solid rgba(219, 219, 219, 0.5);
    width: 100vw;
    height: 8vh;
    background-color: #FAFAFA;
    line-height: 8vh;

    input {
      width: 85%;
      height: 5vh;
      font-size: 0.4rem;
      border: 1px solid #9B9B9B;
      text-align: center;
    }
  }

  .projectStatistics {
    width: 100%;
    //height: 80vh;
    margin-top: 80px;
    //margin-top: 14px;
    .project {
      width: 94%;
      margin: 0 auto;
      span{
        display: inline-block;
        width: 22%;
        height: 5vh;
        background: #FFFFFF;
        border-radius: 2px;
        margin-left: 8%;
        line-height: 5vh;
        text-align: center;
        color: #666666;
        margin-top: 14px;
      }
    }
  }
  .bottom-layout {
    position: fixed;
    bottom: 0px;
    width: 100vw;
    height: 8vh;
    display: flex;
    flex-direction: row;

    span {
      flex: 1;
      height: 8vh;
      background: #FFFFFF;
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: center;
      font-size: 0.4rem;
      color: #28C1C6;
    }

    .add-btn {

    }

    .add-span {
      justify-content: left;
    }
  }


}
</style>
